﻿using BCCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Common.FAQ
{
#pragma warning disable CS1591 // 缺少对公共可见类型或成员的 XML 注释
    public class FAQRequestDto
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name = "标题")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Title { get; set; }
        /// <summary>
        /// 问题描述
        /// </summary>
        [Display(Name = "问题描述")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Question { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [Display(Name = "邮箱")]
        [RegularExpression(RegexPatterns.EMAIL, ErrorMessage = "{0} 格式不正确")]
        public string ReplyEmail { get; set; }
    }
}
